package com.test.jmx.jobss;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ValueHolder {

	private static final ValueHolder instance = new ValueHolder();

	private static final Map<String, String> mapContainer = new HashMap<String, String>();

	private static List<String> list = new ArrayList<String>();

	private ValueHolder() {

	}

	public static ValueHolder getInstance() {
		return instance;
	}

	private int Count = 0;

	public int getCount() {
		return Count;
	}

	public void setCount(int count) {
		Count = count;
	}

	public void addItem(String key, String value) {
		mapContainer.put(key, value);
	}

	public void emptyContainer() {
		mapContainer.clear();
	}

	public void showItems() {
		System.out.println(mapContainer.toString());
	}

	public List<String> getList() {
		return list;
	}

	public Map<String, String> getMapContainer() {
		return mapContainer;
	}

	public void setList(List<String> l) {
		list = l;
	}

}
